<h3>Twitter.GetMentions() Method</h3>

<p>Use the following code to returns the most recent mentions (status containing @@username) for the authenticated user. See the Authentication Flow for instructions on how to obtain the user's Access Token and Secret.</p>

<pre class="codePre">
@@{
    <strong>var mentions = Twitter.GetMentions(token, tokenSecret);</strong>
    var mentions = new WebGrid(mentions);
}
</pre>

@if (Session["token"] != null) {
    var mentions = Twitter.GetMentions(Session["token"].ToString(), Session["secret"].ToString());
    var grid = new WebGrid(mentions);
    
    @SampleHelpers.RenderTimelineGrid(grid)                                      
} else {
    <div class="message info">
        You're not logged in with twitter, login using the button below.<br/><br/>
        @Twitter.LoginButton(callbackUrl : SampleHelpers.RetrieveCallbackUrl("GetMentions"))
    </div>
}
